package com.gtja.beoms.service;

import com.github.pagehelper.PageInfo;
import com.gtja.beoms.dto.ConversationArchiveQuery;
import com.gtja.beoms.dto.ConversationArchiveVo;
import com.gtja.beoms.dto.QwContactMappingVo;

import java.util.List;


/**
 * 会话存档
 *
 * @Author : LI
 */
public interface IFinanceService {

    /**
     * 会话存档同步
     *
     * @param corpId
     * @param methodParams
     * @throws Exception
     */
    void syncFinance(String corpId, String[] methodParams) throws Exception;

    /**
     * 会话存档ES匹配查询
     *
     * @param query
     * @return
     * @throws Exception
     */
    PageInfo<ConversationArchiveVo> queryElasticSearch(ConversationArchiveQuery query) throws Exception;

    /**
     * 获取员工聊天映射关系
     *
     * @param corpId
     * @param fromId
     * @return
     * @throws Exception
     */
    List<QwContactMappingVo> getContactMapping(String corpId, String fromId) throws Exception;


    /**
     * 获取群聊映射关系
     *
     * @param corpId
     * @param fromId
     * @return
     * @throws Exception
     */
    List<QwContactMappingVo> getGroupMapping(String corpId, String fromId) throws Exception;


    /**
     * 获取有会话记录的员工信息
     *
     * @param corpId
     * @return
     * @throws Exception
     */
    List<QwContactMappingVo> getUserInfo(String corpId) throws Exception;
}
